package com.xy.job.executor.core.job

import com.xy.job.core.enums.JobStatus

class JobResult(
    var jobStatus: JobStatus,
    var message: String? = null,
){
    companion object {
        @JvmStatic
        fun success() = JobResult(
            jobStatus = JobStatus.SUCCESS,
            message = null
        )

        @JvmStatic
        fun failed(message: String? = "") = JobResult(
            jobStatus = JobStatus.FAILED,
            message = message
        )
    }
}